package com.aizhixin.lab.docker.repository;

import com.aizhixin.lab.docker.entity.ChapterExperiment;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ChapterExperimentRepository extends JpaRepository<ChapterExperiment,String> {
    ChapterExperiment findAllByUserIdAndChapterIdAndCourseId(String userId, String chapterId, String courseId);
    void deleteAllByUserIdAndChapterIdAndCourseId(String userId, String chapterId, String courseId);
    ChapterExperiment findAllByUserIdAndCourseIdAndChapterIdNot(String userId, String courseId, String chapterId);
    void deleteAllByCourseIdAndUserId(String courseId, String userId);
}
